<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="UTF-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<title>Document</title>
		<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.6/umd/popper.min.js"></script>
		<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/css/bootstrap.min.css">
		<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"></script>
		<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/js/bootstrap.min.js"></script>
	</head>
	<body class="container">
		    <h3 class="mb-4">按钮、链接中添加徽章</h3>
		    <button type="button " class="btn btn-primary">富强<span class="badge ml-4">1</span></button>
		    <button type="button " class="btn btn-danger">民主<span class="badge ml-4">2</span></button>
		    <button type="button " class="btn btn-success">文明<span class="badge ml-4">3</span></button>
		    <a href="#" class="btn btn-warning">爱国<span class="badge ml-4">4</span></a>
	</body>
</html>
